import { Component } from "react";
import PaintChat from '../common/paint-chat';
import data from '../util/data';
import './index.less';
import Taro from "@tarojs/taro";

class Paint extends Component {

    componentDidMount() {
        // console.log('paint进来了');
        // Taro.setStorageSync('isFake', true);
        Taro.setNavigationBarColor({ backgroundColor: '#2c2c31', frontColor: '#ffffff' })
    }

    onShareAppMessage = () => {
        return {
            title: '免费AI聊天和绘画,用它就够了',
            path: '/pages/community/index',
            imageUrl: data.shareImgUrl
        }
    }

    enableShareTimeline = () => {
        return {
            title: data.APP_NAME,
            path: '/pages/paint/index'
        }
    }

    render() {
        return <PaintChat />;
    }
}

export default Paint
